package com.ztgf.commodity.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.commodity.models.bo.CommodityLabelSaveBO;
import com.ztgf.commodity.models.dto.CommodityLabelDTO;

import java.util.List;

public interface ICommodityLabelService extends IService<CommodityLabelDTO> {

    /**
     * @Description: 添加标签
     * @Author: chenyu.wang
     * @Params: [saveBO]
     * @Date: 2020.12.02 16:53
     */
    boolean addLabel(CommodityLabelSaveBO saveBO);

    /**
     * @Description: 修改标签
     * @Author: chenyu.wang
     * @Params: [bo]
     * @Date: 2020.12.02 16:56
     */
    boolean updateLabel(CommodityLabelSaveBO bo);

    /**
     * @Description: 根据类目id获取类目标签(已废弃)
     * @Author: chenyu.wang
     * @Params: [categoryId]
     * @Date: 2020.12.03 10:10
     */
    List<CommodityLabelDTO> queryCategoryLabel(Long categoryId);

    /**
     * @Description: 根据类目id和品牌id获取标签信息
     * @Author: chenyu.wang
     * @Params: [categoryId, brandId]
     * @Date: 2020.12.08 14:59
     */
    List<CommodityLabelDTO> queryLabel(Long categoryId, Long brandId);
}
